package com.spzx.order.vo;

import com.spzx.order.domain.OrderItem;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.math.BigDecimal;
import java.util.List;

@Data
@Schema(description = "结算实体类")
public class TradeVo {

    @Schema(description = "结算总金额")
    private BigDecimal totalAmount;

    @Schema(description = "结算商品列表")
    private List<OrderItem> orderItemList;

    @Schema(description = "交易号")
    private String tradeNo;

    /**
     * 通过购物车进入结算，保存订单；变更购物车中商品价格；后需要清理购物车
     */
    @Schema(description = "是否是立即购买")
    private Boolean isBuy = false;
}
